import Layout from '@/layout'

export default [
  {
    path: '/permission',
    name: 'permission',
    redirect: 'permission/menu',
    component: Layout,
    meta: { title: '权限', icon: '权限' },
    children: [
      {
        path: '/role',
        name: 'role',
        component: () => import('@/views/permission/components/role'),
        meta: { title: '用户列表', icon: 'user' }
      },
      {
        path: '/user',
        name: 'user',
        component: () => import('@/views/permission/components/user'),
        meta: { title: '角色列表', icon: '所有人员' }
      },
      {
        path: 'menu',
        name: 'menu',
        component: () => import('@/views/permission/components/menu'),
        meta: {
          title: '菜单列表',
          icon: '菜单'
        }
      }
    ]
  }
]
